﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Simple.Repository.Migrations
{
    public partial class _56 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterTable(
                name: "PrincipalHotlineReply",
                comment: "园长热线回复")
                .Annotation("MySql:CharSet", "utf8mb4")
                .OldAnnotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AlterColumn<string>(
                name: "DailyClockInDeadline",
                table: "ParentChildTasks",
                type: "longtext",
                nullable: true,
                comment: "每日打卡截止时间",
                oldClrType: typeof(DateTime),
                oldType: "datetime(6)",
                oldNullable: true,
                oldComment: "每日打卡截止时间")
                .Annotation("MySql:CharSet", "utf8mb4");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterTable(
                name: "PrincipalHotlineReply",
                oldComment: "园长热线回复")
                .Annotation("MySql:CharSet", "utf8mb4")
                .OldAnnotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AlterColumn<DateTime>(
                name: "DailyClockInDeadline",
                table: "ParentChildTasks",
                type: "datetime(6)",
                nullable: true,
                comment: "每日打卡截止时间",
                oldClrType: typeof(string),
                oldType: "longtext",
                oldNullable: true,
                oldComment: "每日打卡截止时间")
                .OldAnnotation("MySql:CharSet", "utf8mb4");
        }
    }
}
